package org.dxy.api.dto.request.holiday;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


/**
 * 获取假期数据请求
 * 
 * @author dxy
 * @createTime 2025/9/21
 */
@Data
public class GetHolidayDataRequest {
    
    /**
     * 年月，格式：YYYY-MM
     */
    @NotBlank(message = "年月不能为空")
    @Pattern(regexp = "^\\d{4}-\\d{2}$", message = "年月格式错误，应为YYYY-MM")
    private String yearMonth;
}